﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Practices.Unity;
using System.Web.Hosting;
using System.IO;

public partial class PageTemplate_Default_Categorys : EasyCMS.WebUtils.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        var ss = Categorys.GetList(new EasyCMS.Common.Querys.Category());

        Repeater1.DataSource = ss;
        Repeater1.DataBind();


        //GridView1.DataSource = ss;
        //GridView1.DataBind();

        //Response.Write(Tests.GetTestString());
        //Response.Write(Tests.GetTestString());

        //Response.Write("<br />");

        //Response.Write("<br />");
        //Response.Write("<br />");
        //Response.Write("<br />");

        //string test = "<div>sss</div>";
        //Response.Write(test);
        //Response.Write(test.Validation().Html(ValidationMode.Clear).Value);
        //Response.Write(test.Validation().Html(ValidationMode.Remove).Value);
        //test.Validation().Html(ValidationMode.Not);

        //string sss = "<script>xxxxx</script>";
        //EasyCMS.Common.DBComponents.Admin.RealName_Validate(ref sss);

        //EasyCMS.Common.Querys.Category c = new EasyCMS.Common.Querys.Category();
        //c.Type = EasyCMS.Common.Enums.CategoryType.Block;
        //Response.Write(c.HasType);

        //var c = Categorys.GetByID(2);
        //var s = c.Subjects.GetList(new EasyCMS.Common.Querys.Subject());
        //Response.Write(s.Body01);

        //GridView1.DataSource = s;
        //GridView1.DataBind();

        //Subjects.Setup("SubjectData_EasyCMS_SqlServer2005", "xxx&sss");
        //var s = Subjects.GetByID(0);
        //Response.Write(s.Body01);

        //string ss = Request.QueryString[0];


        //ClassLibrary1.MyHost host = ClassLibrary1.MyHost.Create("/", @"D:\tangwei\EasyCMS\Src\WebSite\WebRoot\");
        //Navigator.WebHost.WebHost host = Navigator.WebHost.WebHost.Create("", @"D:\tangwei\EasyCMS\Src\WebSite\WebRoot\");
        //MemoryStream s = new MemoryStream();
        //Pismire.Helper.Web.Hosting.AspnetHost host = Pismire.Helper.Web.Hosting.AspnetHost.Create("/", @"D:\tangwei\EasyCMS\Src\WebSite\WebRoot");
        //host.ProcessRequest(@"pagetemplate\default\comments.aspx", Response.Output);
        //Pismire.Helper.Web.Hosting.TemplateControlWrapper w = host.GetCompiledPageInstance(@"pagetemplate\default\comments.aspx", Response.Output);

        //host.Dispose();
        //Pismire.AspnetExecute.TemplateControlWrapper o = host.GetCompiledPageInstance(@"pagetemplate\default\comments.aspx");
        //Response.Write(o.ToString());
    }
}